package com.efast.dmom.mes.dao.entity;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.efast.dmom.mes.dao.base.PartRelateBaseEntityDao;
import com.efast.dmom.mes.entity.PartEntity;

public interface PartDao extends PartRelateBaseEntityDao<PartEntity>{

	public PartEntity getPartByPartNo(@Param(value = "partNo") String partNo,@Param(value = "revision") String revision);

	public List<PartEntity> getAllPart();

	public List<PartEntity> getPartByBomNameAndRevision(@Param("bomName") String bomName,@Param(value = "bomRevision") String bomRevision);

	public List<PartEntity> getPartByPartNoAndRevision(@Param("partNo") String partNo,@Param("partRevision") String partRevision,@Param("start") int start,@Param("length") int length);
	
	public int getCountByPartId(@Param("partId") long partId,@Param("tableName") String tableName);

}
